// 导入请求模块
import servers from '@/utils/servers'

// 登录请求
export const login = (data) => {
  return servers({
    method: 'POST',
    url: '/v1_0/authorizations',
    data
  })
}

// 发送短信验证码
export const userCode = (mobile) => {
  return servers({
    method: 'GET',
    url: `/v1_0/sms/codes/${mobile}`
  })
}
